package com.frank.entity;

import org.springframework.stereotype.Component;

/**
 * @Author: huweifeng
 * @Date: 2022/11/27
 * @Description: Bean的生命周期
 **/
public class BeanLife {
    public BeanLife() {
        System.out.println("BeanLife调用了无参构造方法");
    }

    public void init() {
        System.out.println("BeanLife调用了初始化init()");
    }

    public void destroy() {
        System.out.println("BeanLife调用了销毁destroy()");
    }
}
